import {Controller, Get} from "@nestjs/common";
import {DemoService} from "apps/ddd-domain/src/demo/service/DemoService";

@Controller("test")
export class DemoController {
    constructor(
        private readonly demoService:DemoService,
    ) {
    }

    @Get("hello")
    test():Promise<unknown>{
        return this.demoService.hello();
    }
    @Get("database")
    database():Promise<unknown>{
        return this.demoService.databaseTest();
    }
}